using System;
using Smallpointer.Data.Common;

namespace Smallpointer.Data
{
    public sealed class Data
    {
        public Data(Input input)
        {
            Input = input;
            DBConfig = new DataConfig();
        }
        public Input Input { get; private set; }
        public Input Condition { get; set; }
        public Output Output { get; private set; }
        internal DataConfig DBConfig
        {
            get;
            private set;
        }
        public void Execute(ExecuteMode mode)
        {
            Output = new DBExecute(this).Execute(mode);
        }
    }
}